package com.qwc.blog.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.qwc.blog.entity.Tag;

import java.util.List;

/**
 * <p>
 * 标签表 服务类
 * </p>
 *
 * @author qwc
 * @since 2022-01-24
 */
public interface ITagService extends IService<Tag> {

    /**
     * 删除标签与文章关联标签
     * @param asList
     * @return
     */
    boolean removeTagAndArticleTagByIds(List<Integer> asList);

    /**
     * 获取标签列表并缓存
     * @return
     */
    List<Tag> listFromCache();

}
